aa38a3620b92f02c59c9d32cb7cd7a803eded84c,orcid-core/src/test/java/org/orcid/core/manager/impl/RegistrationManagerImplTest.java,RegistrationManagerImplTest,testCreateMinimalRegistrationWithExistingEmailThatCanBeAutoDeprecated,#,147

Before Change


        assertEquals(orcidBefore, map1.get(email));  
        
        //Then try to create it again, this time claimed and without source
        orcidProfile = createBasicProfile(email, true);
        orcidProfile = registrationManager.createMinimalRegistration(orcidProfile, true);
        String orcidAfter = orcidProfile.getOrcidIdentifier().getPath();
        assertTrue(OrcidStringUtils.isValidOrcid(orcidAfter));

After Change


        assertEquals(orcidBefore, map1.get(email));  
        
        //Then try to create it again, this time claimed and without source
        Registration form = createRegistrationForm(email, true);
        String orcidAfter = registrationManager.createMinimalRegistration(form, true, java.util.Locale.ENGLISH, "0.0.0.0");
        assertTrue(OrcidStringUtils.isValidOrcid(orcidAfter));
        
        assertThat(orcidAfter, is(not(equalTo(orcidBefore))));